#set $vgname = $getVar("cinder_vgname", "cinder-volumes")
#set $bds = $getVar("cinder_bd_for_vg", "")
#if $bds
    #set $devs = ""
    #for $bd in $bds.split(",")
        dd  if=/dev/zero bs=8192 count=1 of=$bd
        echo ";" | sfdisk -f -q -L $bd && sfdisk -R $bd  && sleep 1 && pvcreate -ff -y ${bd}1
        #set $devs += "%s1 " % $bd
    #end for
    vgcreate $vgname $devs
#end if
